package com.wyy.mapper;

import com.wyy.pojo.model.UserToken;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @program: gytcb
 * @author: 吴磊
 * @create: 2021-06-04 19:45
 */
@Repository
public interface UserMapper {
    /**
     * 通过用户ID查询用户的简单信息
     *
     * @param userId
     * @return
     */
    @Select("select * from users where user_id = #{userId}")
    UserToken getUserById(@Param("userId") String userId);
}
